import { request } from '@/utils/request';

export const getUserInfo = async () => {
  return await request('user/getUserInfo', { method: 'POST' });
}
export const getUserPermisson = async () => {
  return await request('user/select-role-position', { method: 'POST' });
}
export const login = async () => {
  return await request('user/login', { method: 'POST' });
}
export const userLogin = async (params: any) => {
  return await request('login', {
    method: 'POST',
    data: { ...params },
  });
};
export const userLogout = async (params?: any) => {
  return await request('logout', {
    method: 'POST',
    data: { ...params },
  });
};

export const getSysMenuData = async (params?: any) => {
  return await request('sysMenuData', {
    method: 'GET',
    params: { ...params },
  });
};
